package com.chaoxin.lovehelp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chaoxin.lovehelp.common.utils.PageUtils;
import com.chaoxin.lovehelp.entity.FellowEntity;
import com.chaoxin.lovehelp.common.enums.vo.allFellowVo;

import javax.servlet.http.HttpServletRequest;
import java.io.UnsupportedEncodingException;
import java.security.NoSuchAlgorithmException;
import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author honghu
 * @email 3027708213@qq.com
 * @date 2024-02-04 22:13:14
 */
public interface FellowService extends IService<FellowEntity> {
    //获取列表
    PageUtils queryPage(HttpServletRequest request, Map<String, Object> params);
    //删除
    void removeIds(List<Integer> list);
    //获取所有会员信息
    List<allFellowVo> getAllFellow();

    //登录功能验证
    Boolean authenticate(String tel, String password, HttpServletRequest request) throws UnsupportedEncodingException, NoSuchAlgorithmException;

    //登录状态获取
    FellowEntity getLogin(HttpServletRequest request);

    //转换返回给前端的对象
    allFellowVo transferAllFellowVo(FellowEntity fellowEntity);

    //设置角色
    Boolean setRole(Integer id,Integer roleId);

    /**
     * 用户注销
     *
     * @param request
     * @return
     */
    Boolean userLogout(HttpServletRequest request);

    Boolean resetPassword(Integer id,String password) throws UnsupportedEncodingException, NoSuchAlgorithmException;

    public List<allFellowVo> getUserFellow();
}

